package org.rcgwt.client.ui.validator.messages;

import org.rcgwt.client.ui.validator.events.HasMessageHandlers;

import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

/**
 * A MessageDisplay Interface. A MessageDisplay is a component which can display
 * a message sent by a Widget.
 * 
 * @author Elian ORIOU
 * 
 */

public interface IMessageDisplay extends HasMessageHandlers {

	void setFor(Widget o);

	Widget getFor();

	void setMessage(Message m);

	Label getMessage();

	void clearMessage();

	void displaySummary(boolean ds);

	void displayDetail(boolean dd);

	void displaySeverity(boolean ds);

	boolean isGlobalOnly();

	void setGlobalOnly(boolean isGlobalOnly);

}
